<template>
  <el-container>
    <el-header>
      <common-header/>
    </el-header>
    <el-container class="minHeight">
      <el-aside>
        <el-col :span="24">
          <leftMenu/>
        </el-col>
      </el-aside>
      <el-main>
        <router-view class="animated fadeInDown"></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import commonHeader from './components/commonHeader'
import leftMenu from './components/LeftMenu'
export default {
  components: {
    commonHeader,
    leftMenu
  }
}
</script>

<style lang='scss' scoped>
.el-container {
  .el-header {
    color: #555;
    font-weight: bold;
    height: 60px;
    text-align: center;
    line-height: 58px;
    // font-size: 24px;
    letter-spacing: 3px;
    background-color: rgba(0, 128, 128, 0.089);
    border-bottom: 1px solid #ccc;
    // color: rgba(0, 128, 128, 1);
    .el-dropdown-menu__item{
      line-height: 58px;
      margin: 0;
    }
  }
  .minHeight {
    min-height: calc(100vh - 60px);
    .el-aside {
      border-right: 1px solid #ccc;
    }
  }
  .el-container {
    .el-aside {
      width: 12.5vw !important;
    }
    .el-main {
      padding: 0;
      .animated {
        animation-duration: 0.5s; /*动画持续时间*/
        animation-delay: 0s; /*动画延迟时间*/
        animation-iteration-count: 1; /*动画执行次数*/
      }
    }
  }
}
@media screen and (max-width: 1100px) {
  .el-container {
    .el-container {
      .el-aside {
        width: 15vw !important;
      }
    }
  }
}
@media screen and (max-width: 768px) {
  .el-container {
    .el-container {
      .el-aside {
        width: 19vw !important;
      }
    }
  }
}
</style>